<template>
	<view class="content">
		<view class="dataBox">
			<view class="dataItem">
				<view class="hotBox">
					<text class="list">1</text>
				</view>
				<image :src="$baseurl+'project/test.png'" class="cover"></image>
				<text class="name">绵州酒店套房</text>
				<view class="numBox">
					已有100人购买
				</view>
				<view class="priceBox">
					<text class="sellPrice">￥298</text>
					<text class="linePrice">原价￥1000</text>
				</view>
				<view class="buy">
					立即抢购
				</view>
			</view>
			<view class="dataItem">
				<view class="hotBox">
					<text class="list">2</text>
				</view>
				<image :src="$baseurl+'project/test.png'" class="cover"></image>
				<text class="name">绵州酒店套房</text>
				<view class="numBox">
					已有100人购买
				</view>
				<view class="priceBox">
					<text class="sellPrice">￥298</text>
					<text class="linePrice">原价￥1000</text>
				</view>
				<view class="buy">
					立即抢购
				</view>
			</view>
			<view class="dataItem">
				<view class="hotBox">
					<text class="list">2</text>
				</view>
				<image :src="$baseurl+'project/test.png'" class="cover"></image>
				<text class="name">绵州酒店套房</text>
				<view class="numBox">
					已有100人购买
				</view>
				<view class="priceBox">
					<text class="sellPrice">￥298</text>
					<text class="linePrice">原价￥1000</text>
				</view>
				<view class="buy buy1">
					立即抢购
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.dataItem {
		position: relative;
		width: 100%;
		height: 275rpx;
		margin-bottom: 40rpx;
		background-color: #fff;
		border-radius: 15rpx;

		.hotBox {
			position: absolute;
			width: 60rpx;
			height: 53rpx;
			top: -12rpx;
			background: url('https://miantou.guguan.net/img/category/hot.png');
			background-size: 100% 100%;
			text-align: center;

			.list {
				margin-top: 23rpx;
				font-size: 20rpx;
				color: #fff;
				margin-left: -10rpx;
				display: block;
			}
		}

		.numBox {
			position: absolute;
			top: 120rpx;
			left: 260rpx;
			padding: 8rpx;
			border: 1rpx solid #919191;
			border-radius: 21rpx;
			font-size: 20rpx;
			font-weight: 500;
			color: #919191;
		}

		.buy {
			position: absolute;
			right: 37rpx;
			top: 178rpx;
			width: 136rpx;
			height: 56rpx;
			line-height: 56rpx;
			border-radius: 28rpx;
			// background: linear-gradient(270deg, #4F8EA1 0%, #91D6EB 100%);
			background: linear-gradient(270deg, #F24235 0%, #FC8B3A 100%);
			color: #fff;
			font-size: 20rpx;
			font-weight: 500;
			text-align: center;
		}
		.buy1 {
			background: linear-gradient(270deg, #4F8EA1 0%, #91D6EB 100%);
		}
		.priceBox {
			position: absolute;
			display: flex;
			top: 197rpx;
			left: 260rpx;
			align-items: center;

			.sellPrice {
				color: #D95945;
				font-size: 32rpx;
				font-weight: 700;
			}

			.linePrice {
				color: #919191;
				font-size: 20rpx;
				font-weight: 500;
				margin-left: 25rpx;
				text-decoration: line-through;
			}
		}

		.name {
			position: absolute;
			font-size: 28rpx;
			font-weight: 700;
			width: 350rpx;
			left: 260rpx;
			top: 55rpx;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}

		.cover {
			position: absolute;
			width: 192rpx;
			height: 192rpx;
			border-radius: 15rpx;
			left: 24rpx;
			top: 43rpx;
		}
	}

	.dataBox {
		width: 700rpx;
		margin-left: 25rpx;
		margin-top: 40rpx;

	}

	.content {
		width: 100%;
		height: 100vh;
		background-color: #F9FAFA;
		overflow-y: scroll;
	}
</style>